package com.qf.ssm.exception;

import org.springframework.stereotype.Component;

/**
 * @author 王博康
 * @version 1.0
 * @project 07_ssm
 * @description: TODO
 * @date 2022/3/10 15:12 星期四
 */
@Component
public class StudentMsgException extends RuntimeException{
    private int code;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public StudentMsgException() {
    }

    public StudentMsgException(String message,int code) {
        super(message);
        this.code=code;
    }
}
